import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  //交易录入
  tradeAdd: (query) => api.post(`${config.interfaces.type1}finaFlocking/save3`, query),
  //簿记修改新增
  tradeBookSave: (query) => api.post(`${config.interfaces.type1}finaFlocking/save2`, query),
  // //指令下达
  orderSave: (query) => api.post(`${config.interfaces.type1}finaFlocking/save`, query),
  // 行为事件
  queryEventByCode: (query) => api.get(`${config.interfaces.type1}finaFlocking/queryEventByCode`, query),
  //查询基础信息
  queryBaseInfo: (query) => api.get(`${config.interfaces.type1}finaFlocking/queryOneByCode`, query),
};
